package com.itheima.oneToOne;


import com.itheima.bean01.Person;
import com.itheima.myBatisUtils.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;



public class Test01 {
    @Test
    public void selectAll(){
        SqlSession sqlSession = MyBatisUtils.getSqlSession();
        PersonMapper mapper = sqlSession.getMapper(PersonMapper.class);
        Person person = mapper.selectAll(1);
        System.out.println(person);
        sqlSession.close();
    }
}
